<template>
	<view>
		<u-navbar title="系统消息"></u-navbar>
		<view class="box">
			<u-parse :html="data"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data:''
			}
		},
		onLoad(option) {
			this.getData(option.id)
		},
		methods: {
			getData(id){
				this.$http({
					url: "api/member/get_notice_info",
					data:{
						id:id
					}
				}).then(res => {
					console.log(res);
					if (res.data.code == 1) {
						this.data = res.data.data.content
					} else {
						this.$tip.tip(res.data.msg)
					}
				}).catch(err => {});
			}
		}
	}
</script>

<style>
.box{
	padding: 30rpx;
	box-sizing: border-box;
}
</style>
